<?php

namespace api\web\model;


use think\Model;

class NavModel extends Model
{
    protected $name = 'navigation';

    public function nav()
    {
        return $this->hasOne(NavModel::class,'parent_id','id');
    }
}